﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WxTenpay.Core.Model
{

    /// <summary>
    /// job任务执行记录
    /// </summary>
    public class JobTaskRecordEntity
    {
        /// <summary>
        ///id
        /// </summary>
        public int Id { set; get; }

        /// <summary>
        ///guid
        /// </summary>
        public string GuId { set; get; } = "";


        /// <summary>
        ///job任务guid
        /// </summary>
        public string JobTaskGuId { set; get; } = "";


        /// <summary>
        /// 详情信息
        /// </summary>
        public string Details { set; get; } = "";

        /// <summary>
        ///添加时间
        /// </summary>
        public string CreateTime { set; get; } = "";


        public void Create()
        {
            if (string.IsNullOrWhiteSpace(this.GuId))
                this.GuId = Guid.NewGuid().ToString();
            if (string.IsNullOrWhiteSpace(this.CreateTime))
                this.CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        }

    }
}
